import axios from "axios";

// 定义默认配置
// axios.defaults.baseURL = 'http://localhost/ClientServer/UEServer2/public/index.php/api';
// axios.defaults.baseURL = 'http://39.101.64.11:8080';
// axios.defaults.baseURL = 'http://39.101.64.11:8080/stage-api/';
axios.defaults.baseURL = 'http://39.101.64.11:5000/exter-api/';


// ue真实ui地址
// http://192.168.0.200:9001

// http://192.168.0.200:9001 
// axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

// stage-api
// exter-api
var getdutyroster = function(params,calBack){axios.get("sys/dutyroster/getdutyroster",params).then(function(response){calBack(response.data); }).catch(function(error){ console.log(error);})}


var pagequery = function(params,calBack){axios.post("syn/pagequery",params).then(function(response){calBack(response.data); }).catch(function(error){ console.log(error);})}



export{ 
    getdutyroster,pagequery
};